package com.kurumi.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kurumi.pojo.MedicalRecordBorrowApply;
import com.kurumi.pojo.MedicalRecordPageBorrowApply;

public interface MedicalRecordBorrowApplyMapper {
    
    int deleteByPrimaryKey(Integer id);

    int insert(MedicalRecordBorrowApply record);

    int insertSelective(MedicalRecordBorrowApply record);
    
    MedicalRecordBorrowApply selectByPrimaryKey(Integer id);
   
    int updateByPrimaryKeySelective(MedicalRecordBorrowApply record);

    int updateByPrimaryKey(MedicalRecordBorrowApply record);
    
    int insertPageBorrowApply(MedicalRecordPageBorrowApply record);
    
    List<Integer> getIdsOfMedicalRecordBorrow(@Param("visitGuid")String visitGuid);
    
    List<Integer> getIdsOfMedicalRecordPageBorrow(@Param("visitGuid")String visitGuid);
    
    int deleteBorrowByBorrowId(Integer borrowId);
    
    int deletePageBorrowByPageBorrowId(Integer pageBorrowId);
}